const {imgUrl} = getApp().globalData
import { mineApi } from "../../../utils/request/api/mine";
Page({
  data: {
    imgUrl: imgUrl + 'mine/',
    active: 0,
    info: {}
  },
  clickbtn(event) {
    let active = event.currentTarget.dataset.active;
    this.setData({
      active: active
    })
  },
  toEdit() {
    wx.navigateTo({
      url: "/pages/mine/authority/authority?from=edit"
    })
  },
  onLoad(options) {
    mineApi.getAuthenZj().then(res => {
      console.log('res auth === ', res)
      if (res.err_code == 0) {
        this.setData({
          info: res.data
        })
      }
    }).catch(err => {
      Toast.fail('获取信息失败，请稍后再试！')
    })
  },
  onReady() {
  },
  onShow() {
  },
  onHide() {
  },
  onUnload() {
  },
  onShareAppMessage() {
    return {
      title: '',
    };
  },
});